package com.shen;

import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.util.Scanner;

/**
 * Author:shen
 * CreateDate:2020/5/24.
 * Function:
 */
public class Demo03 {
    static Scanner scanner=new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println("请输入一串字符：");
        String str=scanner.nextLine();
       char[] chars=str.toCharArray();
        for (char k:chars
             ) {
            System.out.println(k+":"+(byte)k);
        }
    }
}
